EnableGroup
將組狀態從 GroupDisabled 改為 GroupStandstill。
語法
KsError EnableGroup(
int Index
);
參數
Index [in]:軸組索引,索引以零為起點。最多可有 32 個軸組。
回傳值
如果此函式執行成功,會回傳 errNoError,否則會傳回錯誤碼。如需更多有關錯誤碼的資訊,請參閱 KsError 清單。
備註
該命令不會影響組中任何軸的電源狀態。
範例
BOOL GroupEnable(INT Group) {
KsError nRet = EnableGroup(Group);
return TRUE;
}
使用需求
| RT | Win32 | |
|---|---|---|
| 最低支援版本 | 4.0 | 4.0 |
| 標頭檔 | ksmotion.h | ksmotion.h |
| 程式庫 | KsApi_Rtss.lib | KsApi.lib |
參見